<template>
  <div>
    <div class="jnhfxq_box">
      <div class="box">
        <div class="title_box">
          <div class="title">
            {{ list.title }}
          </div>
          <div class="tishi">
            <span>发布日期：{{ list.createtime }} &nbsp; 类型：{{ list.classification }}</span>
          </div>
        </div>
        <div class="nr" v-html="list.content">
         
        </div>
      </div>
    </div>
  </div>
</template>
  <script>
export default {
  data() {
    return {
      list:{}
    };
  },
  mounted() {
    // console.log(this.$router)

    this.getinfo()
  },
  methods: {
   /**
     * 获取列表
     */
     getinfo() {
      let detailid = this.$route.query.id
      let data = {
        type:2,
        id:detailid
      };
      this.$http.post("notice/detail", data).then((res) => {
        if (res.code === 1) {
          this.list = res.data;
        } else {
          this.list = {};
        }
      });
    },
    //  ==
  },
};
</script>
  <style scoped>
.jnhfxq_box {
  background: #ffffff;
  border-radius: 0.125rem;
  box-shadow: 1px 1px 3px 2px rgba(0, 0, 0, 0.15);
  margin: 0.125rem 0.025rem 0.1rem 0.625rem;
  padding: 0.375rem 0 1.025rem 0;
}
.box {
  width: 13.675rem;
  font-size: 0.25rem;
  font-weight: 400;
  color: #333333;
  margin: auto;
}
.title_box {
  padding: 0.375rem 0 0.375rem 0;
  text-align: center;
  border-bottom: 2px dotted #ddd;
}
.title {
  margin-bottom: 0.375rem;
}
.tishi {
  font-size: 0.175rem;
  font-weight: 400;
  color: #7c7c7c;
}
.nr {
  margin-top: 0.3rem;
  font-size: 0.225rem;
  line-height: 0.45rem;
}
</style>